#ifndef MAINMENU_H
#define MAINMENU_H

#include "basewindow.h"
#include "textbutton.h"
#include "instructionscreen.h"
#include "settingsscreen.h"
#include "creditsscreen.h"
#include <QWidget>
#include <QImage>
#include <QPainter>
#include <QDebug>
#include <QFont>
#include <QFontDatabase>

namespace Ui {
    class MainMenu;
}

class MainMenu : public QWidget
{
    Q_OBJECT

public:
    explicit MainMenu(QWidget *parent = 0, QString newFilepath = "");
    ~MainMenu();

    void paintEvent(QPaintEvent *event);

private:
    Ui::MainMenu *ui;
    QString filepath;
    QImage bg;
    QFont *buttonFont;
    TextButton *newGame, *loadGame, *settings, *instructions, *credits;

private slots:
    void on_loadGame_clicked();
    void on_newGame_clicked();
    void on_settings_clicked();
    void on_instructions_clicked();
    void on_credits_clicked();
};

#endif // MAINMENU_H
